import instance from '../utils/request'

export const getArticle = ( {channel_id,timestamp,} ) => {
  
  // params.with_top =0
  return instance({
    url: '/v1_0/articles',
    // url: '/v1_1/articles',
    method: 'get',
    // 因为是get请求，所以参数写params
    params: {
      channel_id,
      timestamp,
      with_top: 0
    }
    // params
  })
}

export const articleInfo = (id) => {

  return instance({
    url: `/v1_0/articles/${id}`,
  })
}